https://www.marcogarosi.it/courses/image-and-signal-processing/convolution//
Read this: